package tlp.ucsur.dao.factories;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
import tlp.ucsur.dao.EquipoDAO;
import tlp.ucsur.dao.ReservaDAO;
import tlp.ucsur.dao.UsuarioDAO;
import tlp.ucsur.dao.AulaDAO;
import tlp.ucsur.dao.TipoUsuarioDAO;
import tlp.ucsur.dao.LocalDAO;

/**
 *
 * @author Administrador
 */
public abstract class DAOFactory {

  public static final int TEMP_DATA = 1;
  public static final int MY_SQL = 2;
  public static final int ORACLE = 3;

  public static DAOFactory getInstance(int daotype) {

    switch (daotype) {
      case TEMP_DATA:
        return new TemporalDAOFactory();
      case MY_SQL:
        return new MySqlDAOFactory();
      case ORACLE:
        return null;
      default:
        return null;
    }

  }

  public abstract AulaDAO getAula();

  public abstract EquipoDAO getEquipo();

  public abstract LocalDAO getLocal();

  public abstract ReservaDAO getReserva();

  public abstract TipoUsuarioDAO getTipoUsuario();

  public abstract UsuarioDAO getUsuario();
}
